import request from '@/utils/request';

/**
 * 获取员工列表
 */
export const getStaffList_API = async (params: any) => await request.post('/api/getStaffList', params);


/**
 * 获取员工详情
 */
export const getStaffDetail_API = async (staffId: any) => await request.get(`/api/getStaffDetail/${staffId}`);


/**
 * 新增员工
 */
export const addStaff_API = async (params: any) => await request.post(`/api/addStaff`, params);


/**
 * 删除员工
 */
export const deleteStaff_API = async (params: any) => await request.post(`/api/deleteStaff`, params);


/**
 * 删除员工
 */
export const updateStaff_API = async (params: any) => await request.put(`/api/updateStaff`, params);


export default {
  getStaffList_API,
  getStaffDetail_API,
  addStaff_API,
  deleteStaff_API,
  updateStaff_API
}